home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Chess++ ƒ / ChessGlobals.cp < prev    next >
Text File  |  1993-05-26  |  1KB  |  50 lines

  1. ////////////
  2. //
  3. //    ChessGlobals.cp
  4. //
  5. //
  6. //    Global variables specific to Chess
  7. //
  8. ////////////
  9.  
  10. #include "CBrain.h"
  11.  
  12. CChessBoard    *gChessBoard;
  13. CBrain        *gBrain;
  14.  
  15. RgnHandle    gChessBoardRgnHandle;
  16.  
  17. CIconHandle    gWhitePawnCicnHandle;
  18. CIconHandle    gWhiteKnightCicnHandle;
  19. CIconHandle    gWhiteBishopCicnHandle;
  20. CIconHandle    gWhiteRookCicnHandle;
  21. CIconHandle    gWhiteQueenCicnHandle;
  22. CIconHandle    gWhiteKingCicnHandle;
  23. CIconHandle    gBlackPawnCicnHandle;
  24. CIconHandle    gBlackKnightCicnHandle;
  25. CIconHandle    gBlackBishopCicnHandle;
  26. CIconHandle    gBlackRookCicnHandle;
  27. CIconHandle    gBlackQueenCicnHandle;
  28. CIconHandle    gBlackKingCicnHandle;
  29.  
  30.             // cursor for selecting piece to move
  31. Cursor        gChessCursor = { 0x0000, 0x0000, 0x0000, 0x0000,
  32.                             0x0100, 0x0100, 0x0100, 0x0fe0,
  33.                             0x0100, 0x0100, 0x0100, 0x0000,
  34.                             0x0000, 0x0000, 0x0000, 0x0000,
  35.                             0x0000, 0x0000, 0x0000, 0x0100,
  36.                             0x0380, 0x0380, 0x0fe0, 0x1ff0,
  37.                             0x0fe0, 0x0380, 0x0380, 0x0100,
  38.                             0x0000, 0x0000, 0x0000, 0x0000,
  39.                             0x0007, 0x0007},
  40.  
  41.             // cursor for selecting square in which to move
  42.             gScopeCursor = { 0x0100, 0x07c0, 0x1930, 0x2108,
  43.                             0x2108, 0x4104, 0x4104, 0xfffe,
  44.                             0x4104, 0x4104, 0x2108, 0x2108,
  45.                             0x1930, 0x07c0, 0x0100, 0x0000,
  46.                             0x0100, 0x07c0, 0x1930, 0x2108,
  47.                             0x2108, 0x4104, 0x4104, 0xfffe,
  48.                             0x4104, 0x4104, 0x2108, 0x2108,
  49.                             0x1930, 0x07c0, 0x0100, 0x0000,
  50.                             0x0007, 0x0007};